/**
 * 
 */
package com.redside.service.impl;

import java.util.List;

import com.redside.dao.QuestionDao;
import com.redside.model.survey.Question;
import com.redside.service.QuestionManager;

/**
 * @author <a href="mailto:pchapman@easystreet.net">Peter Chapman</a>
 * 
 */
public class QuestionManagerImpl extends GenericManagerImpl<Question, Long>
		implements QuestionManager {

	private QuestionDao dao;
	
	public QuestionManagerImpl(QuestionDao dao) {
		super(dao);
		this.dao = dao;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.redside.service.QuestionManager#findAllForSurvey(java.lang.Long)
	 */
	public List<Question> findAllForSurvey(Long surveyId) {
		return dao.findAllForSurvey(surveyId);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.redside.service.QuestionManager#save(com.redside.model.survey.Question
	 * )
	 */
	public Question save(Question question) {
		return dao.save(question);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.redside.service.GenericManager#exists(java.io.Serializable)
	 */
	public boolean exists(Long id) {
		// TODO Auto-generated method stub
		return false;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.redside.service.GenericManager#get(java.io.Serializable)
	 */
	public Question get(Long id) {
		return dao.get(id);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.redside.service.GenericManager#remove(java.io.Serializable)
	 */
	public void remove(Long id) {
		dao.remove(id);

	}

}
